<template>
  <div>
    <j-date v-model="dateStr" placeholder="请选择日期"></j-date>

    <a-form :form="form123">
      <a-form-item label="日期">
        <j-date :triggerChange="true" v-decorator="['dateStr2',{initialValue:''}]" placeholder="请选择日期2"></j-date>

        <j-date v-decorator="['dateStr3',{trigger:'input'}]" placeholder="请选择日期3"></j-date>
      </a-form-item>
    </a-form>
  </div>
</template>

<script>
  import JDate from '@/components/jeecg/JDate'
  export default {
    name: 'Date',
    components:{
      JDate
    },
    data(){
      return {
        dateStr:"",
        form123:this.$form.createForm(this),
      }
    },
    created () {
      this.form123 = this.$form.createForm(this)
    },
  }
</script>

<style scoped>

</style>